package com.leonzx.base.utils;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * Created by JIANING on 18/04/03.
 */
@Configuration
@ConfigurationProperties(prefix = "oss")
public class OSSConstants {

    public static String accessKeyId = "LTAIgen59yNO012E";//key
    public static String accessKeySecret ="TqrH8TXXqgcC8583mikrXFTqA18ZPx";//Secret
    public static String endpoint = "oss-cn-beijing.aliyuncs.com";//VPC访问e
    public static String bucketName = "leonlimstest";//阿里库名

    public static void setEndpoint(String endpoint) {
        OSSConstants.endpoint = endpoint;
    }

    public static void setAccessKeyId(String accessKeyId) {
        OSSConstants.accessKeyId = accessKeyId;
    }

    public static void setAccessKeySecret(String accessKeySecret) {
        OSSConstants.accessKeySecret = accessKeySecret;
    }

    public static void setBucketName(String bucketName) {
        OSSConstants.bucketName = bucketName;
    }
}
